package com.farm.doc.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 文档共享表
 * @author yangyining@janeluo.com 
 *
 */
@Entity(name = "FarmDocShare")
@Table(name = "farm_doc_share")
public class FarmDocShare implements java.io.Serializable {
	private static final long serialVersionUID = -7484350472600459614L;
	
	@Id
	@GenericGenerator(name = "systemUUID", strategy = "uuid")
	@GeneratedValue(generator = "systemUUID")
	@Column(name = "ID", length = 32, insertable = true, updatable = true, nullable = false)
	private String id;
	@Column(name = "DOCID", length = 32, nullable = false)
	private String docid;
	@Column(name = "PWD", length = 4, nullable = false)
	private String pwd;
	/**
	 * 有效期
	 */
	@Column(name = "VALIDITY", length = 1, nullable = false)
	private String validity;
	
	
	@Column(name = "CUSER", length = 32, nullable = false)
	private String cuser;
	@Column(name = "CUSERNAME", length = 64, nullable = false)
	private String cusername;
	@Column(name = "ETIME", length = 16, nullable = false)
	private String etime;
	@Column(name = "CTIME", length = 16, nullable = false)
	private String ctime;
	public FarmDocShare(String id, String docid, String pwd, String validity, String cuser, String cusername,
			String etime, String ctime) {
		super();
		this.id = id;
		this.docid = docid;
		this.pwd = pwd;
		this.validity = validity;
		this.cuser = cuser;
		this.cusername = cusername;
		this.etime = etime;
		this.ctime = ctime;
	}
	public FarmDocShare() {
		super();
	}
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the docid
	 */
	public String getDocid() {
		return docid;
	}
	/**
	 * @param docid the docid to set
	 */
	public void setDocid(String docid) {
		this.docid = docid;
	}
	/**
	 * @return the pwd
	 */
	public String getPwd() {
		return pwd;
	}
	/**
	 * @param pwd the pwd to set
	 */
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	/**
	 * @return the validity
	 */
	public String getValidity() {
		return validity;
	}
	/**
	 * @param validity the validity to set
	 */
	public void setValidity(String validity) {
		this.validity = validity;
	}
	/**
	 * @return the cuser
	 */
	public String getCuser() {
		return cuser;
	}
	/**
	 * @param cuser the cuser to set
	 */
	public void setCuser(String cuser) {
		this.cuser = cuser;
	}
	/**
	 * @return the cusername
	 */
	public String getCusername() {
		return cusername;
	}
	/**
	 * @param cusername the cusername to set
	 */
	public void setCusername(String cusername) {
		this.cusername = cusername;
	}
	/**
	 * @return the etime
	 */
	public String getEtime() {
		return etime;
	}
	/**
	 * @param etime the etime to set
	 */
	public void setEtime(String etime) {
		this.etime = etime;
	}
	/**
	 * @return the ctime
	 */
	public String getCtime() {
		return ctime;
	}
	/**
	 * @param ctime the ctime to set
	 */
	public void setCtime(String ctime) {
		this.ctime = ctime;
	}
	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}